﻿using System;
using System.Collections.Generic;
using System.Reflection;
using StockTrader.DAL.IDAL;

namespace StockTrader.DAL.Factory
{
    public sealed class HoseOrdersFactory
    {
        public static StockTrader.DAL.IDAL.IHoseOrders Create(string path)
        {
            string className = path + ".HoseOrders";
            return (StockTrader.DAL.IDAL.IHoseOrders)Assembly.Load(path).CreateInstance(className);
        }
    }
}
